<template>
    <nav class="header-nav">
        <div class="nav-container">
            <div class="logo w-1/6">
                <img :src="websiteConfig.logo.url" :alt="websiteConfig.logo.alt" />
            </div>
            <div class="nav-links">
                <a v-for="item in websiteConfig.navItems" 
                   :key="item.title" 
                   :href="item.link">{{ item.title }}</a>
            </div>
        </div>
    </nav>
</template>

<script setup lang="ts">
import { websiteConfig } from '../config'
</script>

<style scoped>
.header-nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* position: fixed; */
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
}

.nav-links a {
    margin-left: 2rem;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
}

.nav-links a:hover {
    color: #1890ff;
}
</style>